public class Extend {
    public static void main(String[] args) {
        Graduate graduate1 = new Graduate();
        Graduate graduate2 = new Graduate("张三");
        System.out.print(graduate1.name+graduate1.age+"  ");
        graduate1.show();
        System.out.println(graduate2.name);

//        pupil.name="小明";
//        pupil.age=10;
//        pupil.text();
//        pupil.setScore(75);
//        pupil.show();
//        Graduate graduate = new Graduate();
//        graduate.name="大明";
//        graduate.age=18;
//        graduate.text();
//        graduate.setScore(100);
//        graduate.show();
    }
}
